package com.ruoyi.medicine.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 药品信息对象 his_medicine_drug
 * 
 * @author ruoyi
 * @date 2024-08-29
 */
public class HisMedicineDrug extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 药品ID */
    private Long drugId;

    /** 药片名称 */
    @Excel(name = "药片名称")
    private String drugName;

    /** 药品编码 */
    @Excel(name = "药品编码")
    private String drugCode;

    /** 药片关键字 */
    @Excel(name = "药片关键字")
    private String drugKeyword;

    /** 生产厂家ID */
    @Excel(name = "生产厂家ID")
    private Long factoryId;

    /** 药品类型 */
    @Excel(name = "药品类型")
    private String drugType;

    /** 处方类型 */
    @Excel(name = "处方类型")
    private String drugPrescription;

    /** 单位 */
    @Excel(name = "单位")
    private String drugUnit;

    /** 销售价格--预留字段 */
    @Excel(name = "销售价格--预留字段")
    private Long drugPrice;

    /** 库存数量 */
    @Excel(name = "库存数量")
    private Long drugNum;

    /** 预警值 */
    @Excel(name = "预警值")
    private Long drugWarn;

    private HisMedicineFactory medicineFatory;

    public HisMedicineFactory getMedicineFatory() {
        return medicineFatory;
    }

    public void setMedicineFatory(HisMedicineFactory medicineFatory) {
        this.medicineFatory = medicineFatory;
    }

    /** （0正常 1 禁用） */
    @Excel(name = "", readConverterExp = "0=正常,1=,禁=用")
    private String status;

    //库存状态
    @Excel(name = "库存状态", readConverterExp = "0=库存正常,1=库存不足")
    private String drugStatus;

    public String getDrugStatus() {
        return drugStatus;
    }

    private Integer CarNum;

    public Integer getCarNum() {
        return CarNum;
    }

    public void setCarNum(Integer carNum) {
        CarNum = carNum;
    }

    public void setDrugStatus(String drugStatus) {
        this.drugStatus = drugStatus;
    }

    public void setDrugId(Long drugId)
    {
        this.drugId = drugId;
    }

    public Long getDrugId() 
    {
        return drugId;
    }
    public void setDrugName(String drugName) 
    {
        this.drugName = drugName;
    }

    public String getDrugName() 
    {
        return drugName;
    }
    public void setDrugCode(String drugCode) 
    {
        this.drugCode = drugCode;
    }

    public String getDrugCode() 
    {
        return drugCode;
    }
    public void setDrugKeyword(String drugKeyword) 
    {
        this.drugKeyword = drugKeyword;
    }

    public String getDrugKeyword() 
    {
        return drugKeyword;
    }
    public void setFactoryId(Long factoryId) 
    {
        this.factoryId = factoryId;
    }

    public Long getFactoryId() 
    {
        return factoryId;
    }
    public void setDrugType(String drugType) 
    {
        this.drugType = drugType;
    }

    public String getDrugType() 
    {
        return drugType;
    }
    public void setDrugPrescription(String drugPrescription) 
    {
        this.drugPrescription = drugPrescription;
    }

    public String getDrugPrescription() 
    {
        return drugPrescription;
    }
    public void setDrugUnit(String drugUnit) 
    {
        this.drugUnit = drugUnit;
    }

    public String getDrugUnit() 
    {
        return drugUnit;
    }
    public void setDrugPrice(Long drugPrice) 
    {
        this.drugPrice = drugPrice;
    }

    public Long getDrugPrice() 
    {
        return drugPrice;
    }
    public void setDrugNum(Long drugNum) 
    {
        this.drugNum = drugNum;
    }

    public Long getDrugNum() 
    {
        return drugNum;
    }
    public void setDrugWarn(Long drugWarn) 
    {
        this.drugWarn = drugWarn;
    }

    public Long getDrugWarn() 
    {
        return drugWarn;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return "HisMedicineDrug{" +
                "drugId=" + drugId +
                ", drugName='" + drugName + '\'' +
                ", drugCode='" + drugCode + '\'' +
                ", drugKeyword='" + drugKeyword + '\'' +
                ", factoryId=" + factoryId +
                ", drugType='" + drugType + '\'' +
                ", drugPrescription='" + drugPrescription + '\'' +
                ", drugUnit='" + drugUnit + '\'' +
                ", drugPrice=" + drugPrice +
                ", drugNum=" + drugNum +
                ", drugWarn=" + drugWarn +
                ", medicineFatory=" + medicineFatory +
                ", status='" + status + '\'' +
                ", drugStatus='" + drugStatus + '\'' +
                '}';
    }
}
